package org.example.loadBalancers;

import org.example.ServiceInstance;
import org.springframework.stereotype.Component;



@Component
public class TestLoadBalancer extends LoadBalancer{


    //无参构造 重写名字
    public TestLoadBalancer() {
        super("test");
    }


    @Override
    public ServiceInstance getServiceInstance(String serviceName) {
        //无脑给一个
        return serviceContext.getServices(serviceName).iterator().next();
    }





}
